﻿using System;
using System.Windows.Forms;
using LibAssemble.Assemble;
using LibCommon;
using LibGUI.MainForm;
using LibRTC;
using LibRTC.Core;
using RTCCore;

namespace VCEDU
{
    static class MainProgram
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Assemble assemble = new Assemble();

            assemble.DoAssemble();
            
            if( DialogResult.OK == assemble.logOnForm.ShowDialog())
            {
                assemble.mainform.Text = assemble.logOnForm.userName.Text ;
                Application.Run(assemble.mainform);
            }
            else
            {
                 Application.Run(assemble.mainform);
            }
                     
            assemble.DoClean();

        }
    }
}
